﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data;
namespace sieuthi.Threelayer.VO
{
    public class nhacungcapVO
    {
        public string MaNcc { get; set; }
        public string Ten { get; set; }
        public string DiaChi { get; set; }
        public int SDT { get; set; }
        public nhacungcapVO nhacungcapIDataReader(IDataReader dr)
        {
            nhacungcapVO obj = new nhacungcapVO();
            obj.MaNcc = (dr["mancc"] is DBNull) ? string.Empty : dr["mancc"].ToString();
            obj.Ten = (dr["ten"] is DBNull) ? string.Empty : dr["ten"].ToString();
            obj.DiaChi = (dr["diachi"] is DBNull) ? string.Empty : dr["diachi"].ToString();
            return obj;
        }
    }
}
